<div class="g12 nodrop" style="margin-bottom: 43px;">

    <h1> <? if (isset($article[0])) {echo $article[0]['article_title']; } else echo 'Novi članak' ?> </h1>

    <p style="line-height: 13px;">

        Tekst, medija, rubrike, objava    

    </p>

    <ul class="breadcrumb" data-connect="breadcrumbcontent">

        <li><a href="javascript:"><span>Tekst članka</span></a></li>
        <li><a href="javascript:"><span>Media editor</span></a></li>
        <li><a href="javascript:"><span>Rubrika i osobine</span></a></li>
        <li><a href="javascript:"><span>Datum objave</span></a></li>

    </ul>

    <div id="breadcrumbcontent">

        <?
            //            DEFINE PHP VARIABLES USED IN INCLUDE VIEW FILES
            global $mc_id;
            $mc_id = 0;

        ?>
        <!--FORM-->    
        <?
            $this->load->view('cms/article/part/form');
        ?>

        <!--MEDIAEDITOR--> 
        <div style="width: 100%; display: none;">

            <h3>Media galerija</h3>

            <!--MEDIA PICKER-->
            <?
                $this->load->view('cms/article/part/media_picker');
            ?> 

            <!--MEDIA EDITOR-->
            <?
                $this->load->view('cms/article/part/media_editor');
            ?> 

            <!--KROP SLIKE-->
            <?
                $this->load->view('cms/article/part/media_crop');
            ?> 
            <hr>

            <button id="prev_1" class="small prev icon i_arrow_left">Povratak</button><button id="next_2" class="small icon i_arrow_right">Sačuvaj i nastavi</button> 


        </div>

        <!--COLUMNS & TAGS-->
        <?
            $this->load->view('cms/article/part/columns_tags');
        ?>

        <!--PUBLISH-->
        <?
            $this->load->view('cms/article/part/publish');
        ?>

    </div>

</div>

<!-- VARIABLES TO edit_new.js -->
<script type="text/javascript">
    var appmode;
    var publishmode;
    var artId;
    var rowCount;  
    <?  if (isset($article[0]['article_datepublish'])){ ?> 
        publishdatetimehalf = '<? echo $article[0]['article_datepublishhalf']?>'; 
        publishdatetime = '<? echo $article[0]['article_datepublish']?>'; 
        publishdatetimeend = '<? echo $article[0]['article_datepublishend']?>'; 
        artId = '<? echo $article[0]['article_id']?>'
        appmode = 'edit';
        publishmode = 'edit';
        rowCount = '<? echo $mc_id+1?>';

        <?}else{?> 
        appmode = 'insert'; 
        publishmode = 'insert' 
        artId = -1;
        rowCount = '<? echo $mc_id+1?>';
        <? } ?>
</script>
